package cn.tdeu.spring.example;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUser {
    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext
                        ("cn.tdeu.spring.example");
        User bean = context.getBean(User.class);
        bean.run();
    }

}
